//
//  Tool.h
//  MyProject
//
//  Created by 石小强 on 2018/3/20.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Tool : NSObject

#pragma mark - 获取APP版本号
+ (NSString *)getSoftVersion;

#pragma mark - 判断用户使用的手机是否是iPhone X
+ (BOOL)isIphoneX;

#pragma mark - 是否含有表情 -- --- 含有表情:YES 不含表情:NO
+ (BOOL)stringContainsEmoji:(NSString *)string;

#pragma mark - 验证手机号
+ (BOOL)validMobile:(NSString *)mobile;
#pragma mark - 验证身份证
+ (BOOL)validCardId:(NSString *)card;

+ (CGSize)sizeWithText:(NSString *)text font:(UIFont *)font maxW:(CGFloat)maxW;

+ (CGSize)sizeWithText:(NSString *)text font:(UIFont *)font;

+ (UIViewController *)topViewController;

@end
